#ifndef FANFOU_GLOBAL_H
#define FANFOU_GLOBAL_H
#include "qglobal.h"
#include <QHash>
namespace Fanfou
{
	class FanfouUser;

	typedef QString FanfouId;
	typedef QMap<QByteArray,QByteArray> ParamMap;

	enum ToolbarButton
	{
		BtnMyself = 1,
		BtnTimeline = 2,
		BtnMention = 4,
		BtnDirectMessage = 8,
		BtnFavorite = 16,
		BtnTweet = 32
	};

	enum MiniblogView
	{
		ViewUser = 1,
		ViewTimeline = 2,
		ViewMention = 4,
		ViewDirectMessage = 8,
		ViewFavorite = 16,
		ViewPublic = 32
	};

	enum TweetCategory
	{
		CateUnknow = 0,
		CatePublic = 1,
		CateTimeline = 2,
		CateMention = 4,
		CateDirectMessage = 8,
		CateFavorite = 16
	};

	class FanfouUserSignalObject : public QObject
	{
		Q_OBJECT
		signals:
			void iconReceived();
		friend class FanfouUser;
	};

	class FanfouTweetSignalObject : public QObject
	{
		Q_OBJECT
		signals:
			void favoriteChanged();
			void textChanged();
			void imageReceived();
		friend class FanfouTweet;
	};
}
#endif // SINA_GLOBAL_H
